/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package test1.problem2;


/**
 *
 * @author hoang.pt
 */
public class SingleDemo {

	/**
	 * constructor
	 */
    public SingleDemo() {
    }

    /**
     * Main
     * @param a
     */
    public static void main(String[] a) {

        //init class Data
        Data data = new Data();

        //run again. forever
        while (true) {
            //get random
            data.getRandom();

            //display name correspond
            data.displayName();

            //sleep
            try {
                Thread.sleep(500);
            } catch (InterruptedException ex) {
            }
        }
    }
}
